package com.wutuo.tag.provider.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Param;

public interface TagRelationsMapper extends BaseTagRelationsMapper {

    @Delete({"delete from tag_relations where roster_id = #{rosterId,jdbcType=BIGINT}"})
    int deleteTagRelationsByrosterId(@Param("rosterId") Long rosterId);

    @DeleteProvider(type = TagRelationsSqlProvider.class, method = "delRoasterAndTagRelations")
    int delRoasterAndTagRelations(@Param("tagId") Long tagId, @Param("userId") String userId);
}